



var currentPage1=1;

function  tuijian(){
	
	    $.ajax({
        url:"http://127.0.0.1:8080/api/goods/selectGoodsList?current="+currentPage1+"&goodsType=1",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					  $.each(data.data.list,function(y,n){
					 var goodslist='<div class="mui-table-view-cell">'+
'				<a href="7.0.0goods_detail.html?id='+n.id+'">'+
'					<dl>'+
'						<dt>'+
'							<img src="'+n.coverUrl+'"/>'+
'						</dt>'+
'						<dd>'+
'							<h5>'+n.goodsTitle+'</h5>'+
'							<h6>&yen;'+n.tradePrice+'&yen;'+n.packPrice+'</h6>'+
'						</dd>'+
'					</dl>'+
'				</a>'+
'			</div>';
           $("#goodslist").append(goodslist);
					  });
					}
		/*console.log(goodslist);*/
			},
			error: function() {
				alert("error");
			}
		});
}


function shangxin(){
	    $.ajax({
        url:urlcore +"/api/goods/selectGoodsList?current="+currentPage1+"&goodsType=1",
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					  $.each(data.data.list,function(y,n){
					 var goodslist='<div class="public_goods">'+
'				<a href="7.0.0goods_detail.html?id='+n.id+'">'+
'					<dl>'+
'						<dt>'+
'							<img src="'+n.coverUrl+'" />'+
'						</dt>'+
'						<dd>'+
'							<h5>'+n.goodsTitle+'</h5>'+
'							<h6>&yen;'+n.tradePrice+'&yen;'+n.packPrice+'</h6>'+
'						</dd>'+
'					</dl>'+
'				</a>'+
'			</div>';
           $("#goodslist2").append(goodslist);
					  });
					 
					}
				
		/*console.log(goodslist);*/
			},
			error: function() {
				alert("error");
			}
		});
}



